<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改漫画爬虫')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-climb-edit" th:object="${mhClimb}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">漫画：</label>
                <div class="col-sm-8">
                    <input name="nameId" th:field="*{nameId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">网站爬取：</label>
                <div class="col-sm-8">
                    <select name="webType" class="form-control m-b" th:field="*{webType}" th:with="type=${@all.toAll()}">
                        <option value="">所有</option>
                        <option th:each="map : ${type}" th:text="${map.key}" th:value="${map.value}"></option>
                    </select>

                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">网页地址：</label>
                <div class="col-sm-8">
                    <input name="webUrl" th:field="*{webUrl}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">内链外链：</label>
                <div class="col-sm-8">
                    <select name="network" th:field="*{network}" class="form-control m-b">
                        <option value=""></option>
                        <option  value="1">内链</option>
                        <option  value="2">外链</option>
                    </select>
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "manhua/climb";
        $("#form-climb-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-climb-edit').serialize());
            }
        }
    </script>
</body>
</html>
